<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>表单元素</title>
  <style>
    .wrapper {
      margin: auto 0;
    }
    input[type="text"],
    input[type="email"] {
      border: 2px solid #000;
      margin: 0 0 1em 0;
      padding: 10px;
      width: 100%;
    }

    input[type="submit"] {
      border: 3px solid #333;
      background-color: #999;
      border-radius: 5px;
      padding: 10px 2em;
      font-weight: bold;
      color: #fff;
    }

    input[type="submit"]:hover, input[type="submit"]:focus {
      background-color: #333;
    }

  </style>
</head>
<body>
<div class="wrapper">
  <form>
    <div><label for="name">Name</label>
      <input type="text" id="name"></div>
    <div><label for="email">Email</label>
      <input type="email" id="email"></div>

    <div class="buttons"><input type="submit" value="Submit"></div>
  </form>
</div>
</body>
</html>